Interface java.applet.AppletStub
All Packages Class Hierarchy This Package Previous Next Index
Interface java.applet.AppletStub
- public interface AppletStub
When an applet is first created, an applet stub is attached to it
using the applet's setStub
method. This stub
serves as the interface between the applet and the browser
environment or applet viewer environment in which the application
is running.
- Version:
- 1.13, 07/01/98
- Author:
- Arthur van Hoff
- Since:
- JDK1.0
- See Also:
- setStub(java.applet.AppletStub)
-
appletResize(int, int)
- Called when the applet wants to be resized.
-
getAppletContext()
- Gets a handler to the applet's context.
-
getCodeBase()
- Gets the base URL.
-
getDocumentBase()
- Gets the document URL.
-
getParameter(String)
- Returns the value of the named parameter in the HTML tag.
-
isActive()
- Determines if the applet is active.
appletResize
public abstract void appletResize(int width,
int height)
- Called when the applet wants to be resized.
- Parameters:
- width - the new requested width for the applet.
- height - the new requested height for the applet.
- Since:
- JDK1.0
getAppletContext
public abstract java.applet.AppletContext getAppletContext()
- Gets a handler to the applet's context.
- Returns:
- the applet's context.
- Since:
- JDK1.0
getCodeBase
public abstract java.net.URL getCodeBase()
- Gets the base URL.
- Returns:
- the
URL
of the applet.
- Since:
- JDK1.0
getDocumentBase
public abstract java.net.URL getDocumentBase()
- Gets the document URL.
- Returns:
- the
URL
of the document containing the applet.
- Since:
- JDK1.0
getParameter
public abstract java.lang.String getParameter(String name)
- Returns the value of the named parameter in the HTML tag. For
example, if an applet is specified as
<applet code="Clock" width=50 height=50>
<param name=Color value="blue">
</applet>
then a call to getParameter("Color")
returns the
value "blue"
.
- Parameters:
- name - a parameter name.
- Returns:
- the value of the named parameter.
- Since:
- JDK1.0
isActive
public abstract boolean isActive()
- Determines if the applet is active. An applet is active just
before its
start
method is called. It becomes
inactive immediately after its stop
method is called.
- Returns:
-
true
if the applet is active;
false
otherwise.
- Since:
- JDK1.0
All Packages Class Hierarchy This Package Previous Next Index